package com.sunny.design.singleton;

/**
 * @author Sunny
 * @date 2019/12/29 16:00
 */
public class ExecutorThread extends Thread {

    private final Object object;

    public ExecutorThread(Object singleton) {
        object = singleton;
    }

    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName() + ": " + object);
    }
}
